package com.dx.financehy.modules.system.mapper;

import com.dx.financehy.base.CommonMapper;
import com.dx.financehy.modules.system.domain.User;
import com.dx.financehy.modules.system.domain.dto.GetBusinessListDTO;
import com.dx.financehy.modules.system.domain.dto.UserDto;
import com.dx.financehy.modules.system.domain.vo.GetBusinessListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: huang_jigao
 * @Title: UserMapper
 * @ProjectName: financehy
 * @Description:
 * @date: 2023-12-05 11:32
 */
@Mapper
public interface UserMapper extends CommonMapper<User> {

    /**
     * 登录获取用户信息
     *
     * @param username
     * @return
     */
    UserDto queryLoginUser(@Param("username") String username);

    /**
     * 获取商家列表
     *
     * @param dto
     * @return
     */
    List<GetBusinessListVO> getBusinessList(@Param("dto") GetBusinessListDTO dto);

    /**
     * 获取商家列表
     *
     * @param dto
     * @return
     */
    List<GetBusinessListVO> getTouristList(@Param("dto") GetBusinessListDTO dto,@Param("merchantId") String merchantId);

    /**
     * 获取最大序号
     *
     * @return
     */
    Integer getMaxVisitorIndex();
}
